<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Login</title>
</head>
<body>
<form id="loginForm">
    <label for="userId">User ID:</label>
    <input type="text" id="userId" name="userId" required>
    <button type="submit">Login</button>
</form>

<script>
    document.getElementById('loginForm').addEventListener('submit', function(event) {
        event.preventDefault();
        const userId = document.getElementById('userId').value;
        sessionStorage.setItem('userId', userId); // Store user ID in sessionStorage
        window.location.href = 'search.html'; // Redirect to the search page
    });
</script>
</body>
</html>
